package com.yt.al.db;

import java.sql.Connection;
import java.sql.DriverManager;

import com.yt.al.util.ConfigUtil;

public class BaseDao {

	public Connection getConnect(){
		String url = ConfigUtil.getProperties("db");
	    try {
			Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
			return DriverManager.getConnection(url);
		} catch (Exception e) {
			e.printStackTrace();
		}
	    return null;
	} 
}
